<?php

namespace App\Console\Commands;

use App\Admin\Exporters\TestExporter;
use App\Events\TopicCreated;
use App\Models\Attachment;
use App\Models\Comment;
use App\Models\Forum;
use App\Models\StickyTopic;
use App\Models\Tag;
use App\Models\Topic;
use App\Models\CommentDetail;
use App\Models\User;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
use Overtrue\Pinyin\Pinyin;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;

class Test extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'lgb:test';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'lgb test';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $r = Route::getRoutes();
        dd($r->count());

    }
}
